"""
演示类的构造方法
"""


class Student:
    name = None
    age = None
    tel = None

    def __init__(self, name, age, tel):
        self.name = name
        self.age = age
        self.tel = tel
        print("全量构造方法执行")

    # Python不支持多个构造方法
    # def __int__(self, name, age):
    #     self.name = name
    #     self.age = age
    #     print("部分1构造方法执行")
    #
    # def __int__(self, name):
    #     self.name = name
    #     print("部分2构造方法执行")


stu1 = Student("张三", 18, "18708080909")
# Python不支持方法重载
# stu2 = Student("李四")
# stu3 = Student("王五", 28)
